package com.zhongshengnetwork.rightbe.gsonmodel;

import com.zhongshengnetwork.rightbe.common.CommonUtils;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by luojingxing on 2019/11/4.
 */

public class WeiShuInfoDetailModel implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String title;

    private String detail;

    private String cover;

    private String userid;

    private Byte contentType;

    private Integer type;

    private boolean visible;

    private long createTime;

    private long updateTime;

    private boolean isDelete;

    private boolean isHot;

    private Integer basecount;

    private Integer realcount;

    private Integer commentCount;

    private Integer likeCount;

    private Integer collectCount;

    private Integer shareCount;

    private Integer publishCount;

    private boolean isOriginal;

    private String whereFrom;

    private Byte status;

    private String nation;

    private String province;

    private String city;

    private String area;

    private String location;

    private double longtitude;

    private double latitude;

    private boolean like;

    private boolean subscribe;

    private String privateIcon;

    private String memberIcon;

    private String header;

    private String name;

    private String nickname;

    private String labelName;

    private String labelIds;

    private int classifyId;

    private String classifyName;

    private String classifyIcon;

    private boolean classifyVisible;

    private boolean needCare;

    private boolean canBrowseAll;

    private boolean careState;

    private boolean needAuth;

    //以下是附加的字段：兼容分类和收藏夹
    private String icon;

    private Integer bookmarkId;

    private String bookmarkName;

    private String bookmarkDetail;

    private Integer browseCount;

    private Integer contentCount;

    private Integer weishuCount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        if (CommonUtils.isEmpty(title)){
            if (!CommonUtils.isEmpty(bookmarkName)){
                return bookmarkName;
            }
            if (!CommonUtils.isEmpty(classifyName)){
                return classifyName;
            }
        }
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getCover() {
        if (CommonUtils.isEmpty(cover)){
            if (!CommonUtils.isEmpty(icon)){
                return icon;
            }
        }
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Byte getContentType() {
        return contentType;
    }

    public void setContentType(Byte contentType) {
        this.contentType = contentType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Boolean getVisible() {
        return visible;
    }

    public void setVisible(Boolean visible) {
        this.visible = visible;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public Boolean getHot() {
        return isHot;
    }

    public void setHot(Boolean hot) {
        isHot = hot;
    }

    public Integer getBasecount() {
        return basecount;
    }

    public void setBasecount(Integer basecount) {
        this.basecount = basecount;
    }

    public Integer getRealcount() {
        if (realcount == null || realcount == 0){
            if (contentCount != null && contentCount > 0){
                return contentCount;
            }
            if (weishuCount != null && weishuCount > 0){
                return weishuCount;
            }
            return 0;
        }
        return realcount;
    }

    public void setRealcount(Integer realcount) {
        this.realcount = realcount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getShareCount() {
        return shareCount;
    }

    public void setShareCount(Integer shareCount) {
        this.shareCount = shareCount;
    }

    public Integer getPublishCount() {
        return publishCount;
    }

    public void setPublishCount(Integer publishCount) {
        this.publishCount = publishCount;
    }

    public Boolean getOriginal() {
        return isOriginal;
    }

    public void setOriginal(Boolean original) {
        isOriginal = original;
    }

    public String getWhereFrom() {
        return whereFrom;
    }

    public void setWhereFrom(String whereFrom) {
        this.whereFrom = whereFrom;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public double getLongtitude() {
        return longtitude;
    }

    public void setLongtitude(double longtitude) {
        this.longtitude = longtitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public boolean isLike() {
        return like;
    }

    public void setLike(boolean like) {
        this.like = like;
    }

    public boolean isSubscribe() {
        return subscribe;
    }

    public void setSubscribe(boolean subscribe) {
        this.subscribe = subscribe;
    }

    public String getPrivateIcon() {
        return privateIcon;
    }

    public void setPrivateIcon(String privateIcon) {
        this.privateIcon = privateIcon;
    }

    public String getMemberIcon() {
        return memberIcon;
    }

    public void setMemberIcon(String memberIcon) {
        this.memberIcon = memberIcon;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String getLabelIds() {
        return labelIds;
    }

    public void setLabelIds(String labelIds) {
        this.labelIds = labelIds;
    }

    public int getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(int classifyId) {
        this.classifyId = classifyId;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public String getClassifyIcon() {
        return classifyIcon;
    }

    public void setClassifyIcon(String classifyIcon) {
        this.classifyIcon = classifyIcon;
    }

    public boolean isClassifyVisible() {
        return classifyVisible;
    }

    public void setClassifyVisible(boolean classifyVisible) {
        this.classifyVisible = classifyVisible;
    }

    public boolean isNeedCare() {
        return needCare;
    }

    public void setNeedCare(boolean needCare) {
        this.needCare = needCare;
    }

    public boolean isCanBrowseAll() {
        return canBrowseAll;
    }

    public void setCanBrowseAll(boolean canBrowseAll) {
        this.canBrowseAll = canBrowseAll;
    }

    public boolean isCareState() {
        return careState;
    }

    public void setCareState(boolean careState) {
        this.careState = careState;
    }

    public boolean isNeedAuth() {
        return needAuth;
    }

    public void setNeedAuth(boolean needAuth) {
        this.needAuth = needAuth;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getBookmarkId() {
        return bookmarkId;
    }

    public void setBookmarkId(Integer bookmarkId) {
        this.bookmarkId = bookmarkId;
    }

    public String getBookmarkName() {
        return bookmarkName;
    }

    public void setBookmarkName(String bookmarkName) {
        this.bookmarkName = bookmarkName;
    }

    public String getBookmarkDetail() {
        return bookmarkDetail;
    }

    public void setBookmarkDetail(String bookmarkDetail) {
        this.bookmarkDetail = bookmarkDetail;
    }

    public Integer getBrowseCount() {
        return browseCount;
    }

    public void setBrowseCount(Integer browseCount) {
        this.browseCount = browseCount;
    }

    public Integer getContentCount() {
        return contentCount;
    }

    public void setContentCount(Integer contentCount) {
        this.contentCount = contentCount;
    }

    public Integer getWeishuCount() {
        return weishuCount;
    }

    public void setWeishuCount(Integer weishuCount) {
        this.weishuCount = weishuCount;
    }


}
